<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="UTF-8">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="robots" content="noindex,nofollow" />
	<meta http-equiv="X-UA-Compatible" content="IE=7" />
	<meta http-equiv="MSThemeCompatible" content="no" />
	<title>Hidoudou SCM</title>
	<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
	<link href="/stylesheets/layout.css" rel="stylesheet" type="text/css" media="screen" />
	<%= javascript_include_tag 'jquery' %>
	<script type="text/javascript">
	$(function(){
		$("#close_flash_msg").live('click', function(){
			$("#msg").remove();
			return false;	
		});
	});
	</script>
	
</head>
<body id="loginpage">
	<div id="scene">	
		<div>
			<div class="clearfix" id="header">
				<div id="logo"><a href="/"> </a></div>
			</div>
			<div class="clearfix" id="content">
				<%= yield %>
			</div>
			<div id="copyright">Copyright &copy; 2010 hidoudou.com, all rights reserved.</div>
			<% if flash[:notice] || flash[:error] %>
			<div id="msg" class="<%= flash[:notice].nil? ? 'err' : 'ok' %>">
				<div>
					<a class="btt fr" href="#" id="close_flash_msg">关闭</a>
					<%= flash[:notice] %>
					<%= flash[:error] %>
				</div>
			</div>
			<% end %>
		</div>
	</div>
</body>
</html>
